﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using EnvDTE80;
using Rhino.Mocks;
using TSVNAddin.TSVN;
using TSVNAddin.Config;

namespace TSVNAddin.Core.Test
{
	[TestFixture]
	public class AboutTortoiseSVNCommandFixture
	{
		[Test]
		public void Execute()
		{
			var tortoiseProcExecutor = MockRepository.GenerateMock<TortoiseProcExecutor>((ProcessStarter)null, (ConfigStorage)null);
			tortoiseProcExecutor.Expect(x => x.Exec(TortoiseProcCommandType.About));

			AboutTortoiseSVNCommand command = new AboutTortoiseSVNCommand(tortoiseProcExecutor);
			command.Execute();

			tortoiseProcExecutor.VerifyAllExpectations();
		}
	}
}
